The for command is a C-calculator mode command. It behaves
roughly like a standard C for construction. In interactive
mode, any new input line will be prompted with a ``n{...n\t
''
where `n' stands for the nesting level and `\t
' for a tab.
Keyword for is a C-calculator mode command.
for (init-expressions; cond-expressions; loop-expressions)
cmode-line-statement
or
for (init-expressions; cond-expressions; loop-expressions) {
cmode-statements
}
cmode for (i=1,j=2;i+j <= data; i+=2,j+=3) A[i] = X[j] fmode # Another example: # A macro to remove point x in a vector. Syntax: delete "vector" "index" macro delete 2 cmode for(i=$2;i<data;i++) { $1[i] = $1[i+1] } fmode unlock data let data-- lock data stop
C, break, continue, cmode, if, set data, func, proc, if, lock, math